﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSocket4Net;
using System.Xml.Serialization;
using System.IO;
using WS.EKA.Utility;

namespace WS.EKA.UI.Business
{
    internal class WebSocketXmlAnalysis
    {
        public Clients Deserialize()
        {
            return XmlSerializerHelper.Deserialize<Clients>("WebSocketClient.xml");
        }
    }

    [Serializable]
    public class Clients
    {
        [XmlElement]
        public Client[] Client { get; set; }
    }
    [Serializable]
    public class Client
    {
        [XmlAttribute]
        public string URL { get; set; }
        [XmlAttribute]
        public WebSocketClientType WebSocketClientType { get; set; }
        [XmlAttribute]
        public WebSocketVersion WebSocketVersion { get; set; }
        [XmlAttribute]
        public string SubProtocol { get; set; }
    }
}
